<extend name="admin/main"/>

<block name="title">
    <title>关于我们</title>
</block>

<block name="css">
<link type="text/css" href="__PUBLIC__/assets/plugins/form-pagedown/css/jquery.pagedown-bootstrap.css">
</block>

<block name="heading">关于我们</block>

<block name="content">
    <div class="panel panel-primary">
        <div class="panel-heading text-uppercase">introduction add</div>
        <div class="panel-body">
            <form class="form" method="post" action="/admin/webSetting/insertIntroduction">
                <div class="modal-body">
                    <div class="form-group">
                        <label for="type">type</label>
                        <input type="text" name="type" id="type" required class="form-control">
                    </div>
                    <div class="form-group">
                        <label for="title">title</label>
                        <input type="text" name="title" id="title" required class="form-control">
                    </div>
                    <div class="form-group">
                        <label for="content">content</label>
                        <textarea name="content" id="content" required class="form-control"
                                  style="max-width: 100%; min-height: 150px"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary">提交更改</button>
                </div>
            </form>
        </div>
    </div>
</block>

<block name="js">
    <script type="text/javascript" src="__PUBLIC__/assets/demo/demo.js"></script>
    <script type="text/javascript" src="__PUBLIC__/assets/demo/demo-switcher.js"></script>
    <script type="text/javascript" src="__PUBLIC__/assets/plugins/bootbox/bootbox.js"></script>
    <script src="__PUBLIC__/assets/plugins/form-pagedown/js/jquery.pagedown-bootstrap.combined.js"></script>

    <script>
        $(document).ready(function () {
            $("textarea#content").pagedownBootstrap();
            $('.wmd-preview').addClass('well');
        });
    </script>
</block>
